# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=go-spreed-turnservicecli
_pkgname=spreed-turnservicecli
_vendor="strukturag"
pkgver=0.1.0
pkgrel=3
pkgdesc="TURN service client implementation for Go"
url="https://github.com/$_vendor/$_pkgname"
arch="noarch"
license="AGPL-3.0-only"
depends="go"
subpackages="$pkgname-doc"
options="!check"
source="$pkgname-$pkgver.tar.gz::https://github.com/$_vendor/$_pkgname/archive/v$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

build() {
	return 0
}

package() {
	cd "$builddir"
	mkdir -p "$pkgdir"/usr/share/doc/$_vendor/$pkgname \
		"$pkgdir"/usr/lib/go/src/github.com/$_vendor/$_pkgname
	for file in \
		LICENSE \
		README.* \
		COPYRIGHT \
		AUTHORS \
		; do \
		test -e $file && mv $file "$pkgdir"/usr/share/doc/$_vendor/$pkgname
	done
	mv * "$pkgdir"/usr/lib/go/src/github.com/$_vendor/$_pkgname
}

sha512sums="a9b82985154c8d0ffa85c684204650fd28af4e868f3c20c1f1524144ab208adb7199f694c3a0787f09994485ad64f857321d41773f80ac18f22161f01273459d  go-spreed-turnservicecli-0.1.0.tar.gz"
